<%--
  Created by IntelliJ IDEA.
  User: user
  Date: 2021/5/13
  Time: 9:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%
        //获取项目的根路径
        String path = request.getContextPath();
        String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>华子图书馆</title>
    <script src="<%=basePath%>layui-v2.6.6/layui/layui.js"></script>
    <link rel="stylesheet" href="<%=basePath%>layui-v2.6.6/layui/css/layui.css">
    <link rel="stylesheet" href="<%=basePath%>layui/css/layui.css">
    <style type="text/css">
        #zhuye{
            border: #0C0C0C 1px solid;
        }
    </style>
    <link rel="icon" type="image/x-icon" href="../cx/img/huazilogo.ico"/>
</head>

<body background="<%=basePath%>library/img/huisess.png" style=" background-repeat:no-repeat ;background-size:100% 100%;
background-attachment: fixed;">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header" style="background-color: rgba(37,40,48,0.8);">
        <div class="layui-logo layui-hide-xs layui-bg-black"><img src="<%=basePath%>/cx/img/huazi.png" alt="" width="50px" height="50px">华子图书馆</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <!-- 移动端显示 -->
            <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                <i class="layui-icon layui-icon-spread-left"></i>
            </li>

            <li class="layui-nav-item layui-hide-xs"><a href="<%=basePath%>/cxq/jianjie.html" target="mainFrame">图书简介</a></li>
            <li class="layui-nav-item layui-hide-xs"><a href="<%=basePath%>/cxq/xuzhi.html" target="mainFrame">用户须知</a></li>
<%--            <li class="layui-nav-item layui-hide-xs"><a href="#" target="mainFrame">借还记录</a></li>--%>
<%--            <li class="layui-nav-item">--%>
<%--                <a href="javascript:;">联系客服</a>--%>
<%--                <dl class="layui-nav-child">--%>
<%--                    <dd><a href="">小美</a></dd>--%>
<%--                    <dd><a href="">小王</a></dd>--%>
<%--                    <dd><a href="">小手</a></dd>--%>
<%--                </dl>--%>
<%--            </li>--%>

        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                    浪子
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">Your Profile</a></dd>
                    <dd><a href="">Settings</a></dd>
                    <dd><a href="">Sign out</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:;">
                    <i class="layui-icon layui-icon-more-vertical"></i>
                </a>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black" id="beijing">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="<%=basePath%>ReaderLogin?tp=selectBook" target="mainFrame">书籍查询</a>
                </li>
                <li class="layui-nav-item">
                    <a href="<%=basePath%>borrow" target="mainFrame">借书信息</a>
                </li>
                <li class="layui-nav-item"><a href="<%=basePath%>RepayServlet" target="mainFrame">还书信息</a></li>
                <li class="layui-nav-item"><a href="<%=basePath%>/cxq/modification.jsp" target="mainFrame">修改密码</a></li>



            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <iframe name="mainFrame" src="<%=basePath%>/cxq/jianjie.html" width="100%" height="100%;" id="zhuye"></iframe>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        各位尊敬用户请注意：周一到周六正常开放！周日不营业。
    </div>
</div>
<script src="<%=basePath%>/layui-v2.6.6/layui.js"></script>
<script>
    //JS
    layui.use(['element', 'layer', 'util'], function(){
        var element = layui.element
            ,layer = layui.layer
            ,util = layui.util
            ,$ = layui.$;

        //头部事件
        util.event('lay-header-event', {
            //左侧菜单事件
            menuLeft: function(othis){
                layer.msg('展开左侧菜单的操作', {icon: 0});
            }
            ,menuRight: function(){
                layer.open({
                    type: 1
                    ,content: '<div style="padding: 15px;">华子图书馆欢迎您的到来 <br><br><a href="<%=basePath%>/cxq/logins.jsp">退出</a></div>'
                    ,area: ['260px', '100%']
                    ,offset: 'rt' //右上角
                    ,anim: 5
                    ,shadeClose: true
                });
            }
        });

    });
</script>
</body>
</html>